package cn.csc.module.distribute.api.downline;

import cn.csc.framework.common.pojo.CommonResult;
import cn.csc.module.distribute.api.downline.dto.CreateDistributeDownlineReqDTO;
import cn.csc.module.distribute.enums.ApiConstants;
import io.swagger.annotations.Api;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * @author yql
 * @version 1.0
 * @date 2025/4/27 15:50
 * @modify
 */
@FeignClient(name = ApiConstants.NAME) // TODO fallbackFactory =
@Api(tags = "RPC 服务 - 分销下线")
public interface DistributeDownlineApi {
    String PREFIX = ApiConstants.PREFIX + "/distribute/downline";

    /**
     * 分销员关联下线
     * @param reqDTO 关联参数
     * @return
     */
    @PostMapping(value = PREFIX + "/create")
    CommonResult<Boolean> relate(@RequestBody CreateDistributeDownlineReqDTO reqDTO);


}
